package com.dingding.transfer.stamper.handler;

import com.alibaba.fastjson.JSONObject;
import com.dingding.transfer.stamper.constant.EventType;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wangxiyuan
 * @description 默认 测试回调url正确性的处理器
 * @createDate 2021/3/30 14:19
 **/
@Slf4j
public class DefaultEventHandler implements  EventHandler{
    @Override
    public boolean support(String eventType) {
        if (EventType.CHECK_URL.getEventType().equals(eventType)) {
            log.info("测试回调url的正确性");
            return true;
        }
        return false;
    }

    @Override
    public boolean handle(JSONObject jsonObject) {
        return true;
    }
}
